package com.start_eternity.oasissafewalk.service;

import com.start_eternity.oasissafewalk.pojo.Driver;
import com.start_eternity.oasissafewalk.pojo.Notice;
import com.start_eternity.oasissafewalk.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;

public interface DriverService {
    /*分页查询*/
    PageBean page(Integer page, Integer pageSize, String driverName, Short gender,
                  LocalDate begin, LocalDate end);
    /*批量删除*/
    void delete(List<Integer> ids);
    /*新增司机*/
    void save(Driver driver);
    /*根据id查询司机*/
    Driver getById(Integer driverId);
    /*更新司机信息*/
    void update(Driver Driver);
/*司机关于订单*/
    public List<Driver> queryListByPId(Integer driverId);
/*根据司机id查询信息*/
List<Driver> getMessageById(Integer driverId);

    /*新增消息*/
    void addNotice(Notice notice);
}
